/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-11-20 15:04:29
 * @LastEditors: huangtianyang
 * @LastEditTime: 2024-04-08 16:10:04
 * @FilePath: \cxl-driving-training\src\views\column\content\formConfig.ts
 */
import { PropsFormpData } from '@/utils/interface'

export const listConfig: PropsFormpData[] = [
    [
        {
            key: 'name',
            label: '栏目名称：',
            placeholder: '请输入',
            required: true,
            message: '请输入栏目名称',
            value: '',
            type: 'select',
            width: 2,
            trigger: 'change',
            valid: true,
            options: []
        },

        {
            key: 'location',
            label: '投放位置：',
            required: true,
            message: '请输入投放位置',
            value: '',
            type: 'text',
            width: 2,
            trigger: 'blur',
            valid: true,
            disabled: true
        }
    ],
    [
        {
            key: 'type',
            label: '栏目形式：',
            required: true,
            message: '请输入栏目形式',
            value: '',
            type: 'text',
            width: 2,
            trigger: 'blur',
            valid: true,
            disabled: true
        },
        {
            key: 'contentTitle',
            label: '内容标题：',
            required: true,
            message: '请输入内容标题',
            value: '',
            type: 'text',
            width: 2,
            trigger: 'blur',
            valid: true
        }
    ],
    [
        {
            key: 'contentTag',
            label: '内容标签：',
            placeholder: '请输入',
            required: false,
            message: '请输入内容标签',
            value: '',
            type: 'select',
            width: 2,
            trigger: 'blur',
            valid: true,
            options: [
                { label: '推荐', value: '1' },
                { label: '热门', value: '2' },
                { label: '必看', value: '3' }
            ]
        }
    ],
    [
        {
            key: 'coverPic',
            label: '封面图：',
            required: true,
            message: '请上传封面图',
            value: [],
            type: 'file',
            width: 2,
            count: ['image'],
            tagVisible: true,
            hint: ' ',
            trigger: 'blur',
            valid: true,
            dirType: 'column',
            placeholder: ''
        }
    ]
]
export const ImageConfig: PropsFormpData[] = [
    [
        {
            key: 'contentInfo',
            label: '发布内容：',
            required: true,
            message: '请输入',
            value: '',
            type: 'tinymce',
            width: 4,
            tagVisible: false,
            hint: '',
            trigger: 'blur',
            valid: true
        }
    ]
]

export const VideoConfig: PropsFormpData[] = [
    [
        {
            key: 'contentInfo',
            label: '发布内容：',
            required: true,
            message: '请上传视频',
            value: [],
            type: 'file',
            width: 2,
            count: ['video'],
            tagVisible: true,
            hint: ' ',
            trigger: 'blur',
            valid: true,
            dirType: 'column',
            placeholder: ''
        }
    ]
]
